package com.xyoto.takeawayUser.mapper;

import com.xyoto.takeawayUser.po.ShoppingOffenPO;
import com.xyoto.takeawayUser.vo.ProdSnapshotVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ClassName: 店铺Mapper
 * @Author: 挽风
 * @Date: 2022
 * @Copyright: 2022 by 挽风
 * @Description:
 **/
@Mapper
public interface ShoppingMapper {

    /**
     * 获取店铺详情下的商品快照信息
     * @param typeIds
     * @return
     */
    List<ProdSnapshotVo> getShopProdSnapshotList(@Param("typeIds") List<Integer> typeIds);

    /**
     * 根据id获取商品简单信息
     * @param shoppingId
     * @return
     */
    ShoppingOffenPO getShoppingInfo(Integer shoppingId);
}
